from pydantic import BaseModel


class ShopCartDelInput(BaseModel):
    """删除"""
    cartIds: [int]

class ShopCartInput(BaseModel):
    """修改or添加购物车"""
    goodsId: int
    goodsSkuId: int
    goodsNum: int

class ShopCartOut(BaseModel):
    id: int
    goods_id: int
    goods_sku_id: int
    goods_num: int
    user_id: int
    is_delete: bool
    store_id: int
    model_config = {"from_attributes": True}
